package com.ctgu.server.dao.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@ApiModel(value = "ArticleDto", description = "文章请求参数")
public class ArticleDto {

    @ApiModelProperty(value = "文章的唯一标识符（主键）")
    @NotNull(message = "主键不能为空")
    private String id;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "用户ID")
    @NotEmpty(message = "用户ID不能为空")
    private String userId;

    @ApiModelProperty(value = "文章所属的类别或主题分类")
    private String category;

//    @ApiModelProperty(value = "文章的浏览次数")
//    private Integer views;
//
//    @ApiModelProperty(value = "文章收到的赞数")
//    private Integer likes;
//
//    @ApiModelProperty(value = "文章的评论数")
//    private Integer comments;
//
//    @ApiModelProperty(value = "0 未发布   1正在发布")
//    private Integer status;
//
//    @ApiModelProperty(value = "文章是否被推荐或置顶显示")
//    private Integer featured;

    @ApiModelProperty(value = "文章内容")
    private String content;

}
